SaveAsWebp(Stream,Nullable<Rectangle>,Boolean,Int32,Int32) Method
In This Topic
Saves the image into a Stream in WEBP format.
Syntax
'Declaration
Public Overloads Sub SaveAsWebp( _
ByVal As System.IO.Stream, _
Optional ByVal As System.Nullable(Of Rectangle), _
Optional ByVal As System.Boolean, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Integer _
)
public void SaveAsWebp(
System.IO.Stream ,
System.Nullable<Rectangle> ,
System.bool ,
System.int ,
System.int
)
Parameters
- stream
- The output stream.
- clipRect
- Clipping rectangle of the image to be saved.
- lossless
- Either lossless (true) or lossy (false) webp format.
- quality
- The compression quality. Between 0 and 100.
- method
- The encoding method to use. Its a quality/speed trade-off (0=fast, 6=slower-better).
See Also